test case now works as intended