run tests before build