Update test case with new logic