Fixed if-then test case.