query-add and query-set arguments validation

Validate the number of arguments when `perform` is called
Merge pull request #101 from gabrielelana/issue-71

query-add and query-set arguments validation