Add namespacing to Rake test tasks.

Under the test namespace there are three tasks:
- test:resource -- core resource tests
- test:supervisor -- supervisor tests
- test:benchmark -- some simple benchmarks

'rake test' is an alias for test:resource & test:supervisor. This
is also the default rake task.
Fix warnings in method_benchmark.rb.