Fixed bug in testcase.