Fix `rake test FILENAME`

Rake clearly removes the “rake” element from the ARGV array.
Add support for default attribute values
Rename QueryResult and add tests