Fixed test cases that fail if using an in-source build