test logic fixed
Merge pull request #183 from boltnev/public_query_fail

test logic fixed