Fix warning suppression in testcase