fix running tests more than once