run tests correctly