Added tests for services.. query and non query for Ad db services