Implemented tests for SQL interface

* autosql interface
* manual parser tests