added freetext search in queries and support for retreiving error status in error callbacks
changed some testcases which were breaking