Basic tests for INSERT and SELECT statements