Added tests.
Slight correction.
Merge pull request #488 from rackerlabs/sethbrayman

Unit tests.