making test pass
handling empty queries