fixed issue where tests were run multiple times