Fix issues with running the tests on release builds.