Fixed a bug were tests would run twice