fixed bug with custom tests. custom tests can now be run more than once.