Refactored test case

Test case had to be updated due to the fix introduced for bug #5775