fixed test for showResult function