Added tests to Rake tasks