adding a couple of unit tests

Finally figured out how to write specs.