adding rspec tests
Merge pull request #3 from howardjing/tests

adding rspec tests