Added specs for new query method