add test.rb for testing