Ensure models are only created when running tests