Fixes test cases.