test a function with ruby minitest