tests: fixed a small bug in a test case.