added a test case for displayLoading in the testApp