Added more SQL tests