tests for query objects creation fix - check exact class name (instanceof is not suitable here)