Refactores tests
Renames action 'query' to 'query-result'