build tests into Rake tasks for travis-ci and fix rubocop errs