rest api constructor tests, query.where