Xcode not picking up changes to Unit Test files

Xcode is not not picking up when I make changes to my unit test files when running tests. The only way is to clean the whole project and rebuild again. Any ideas why?

I recently tried Xcode cloud and this behaviour started after removing that option