Caught null pointer exception that was not letting the test result display