NU-01(hj): -Refactored to extract local variable and fixed the test case message