Added test cases, using minitest (req 4 ruby 2+).