Fixing tests on Linux in both debug and release modes