added tests
convert the old tests to Rspec