Fixed a bug where the tests would be run more than once.