Fixed a bug that made the test check persistent across tests