Forcing the app to return when in the testing environment