Fix test case shape bug