working on issue #19: added new method to the api to explicitly set timeouts
added simple test for issue #19
improved feedback when query type is not detected