Test calling showResult function