fixed all tests for showResult function