Add query alter test.