Implemented query parsing tests. Fixed bug where parameters that occur at the very end of a file will have an extra null character appended to the end.
Implemented tests for variable replacement count, ordering, and type.