Added a few sanity tests for select statements