added test for sql object