install rubocop
remove superfluous test directory
Refactor to use minitest spec matchers instead of mixing styles.

Additional refactoring from Ryan's comments and rubocop.