added rspec unit tests, don't know how to test them... :(