It's just for a unit test. Since there are no activities, then UrbanGameApplication.isApplicationRunning() == false so looper.quit() was called and the unit test wasn't performed.