Added test for using raw queries with models.