refactored test.rb into passing minitest
added encoding unit test
rake task for running all unit tests