Add RSpec tests.
Merge pull request #1 from trema/feature/lib

Add RSpec tests.