Fix infuriating problem with tests