added test if query throws error if called with none-query-object