added test for using record with sql object