add test.rb, updates