Add rake tasks for running unit and functional tests
Fix JRuby issues with #spy

Without excluding #inspect, #to_s, and #respond_to_missing? from being
spied when you use #spy, JRuby throws an ArrayIndexOutOfBoundsException
with a huge backtrace when you use `have_received`.