Add query alter test.
Merge pull request #9 from Gizra/8

Add query alter test