Fixed some buggy test cases.