Tests run and pass on TeamCity

Adding the Rakefile code allows the tests to be run. spec/helper.rb changes keep coveralls from being run under TeamCity, where it isn't needed.