added Query.search method
	added tests for Query.search method