wrote some tests in test.rb