add tests, add rubocop as rake task