Added unittests for Ruby