Adds unit tests
Merge pull request #31 from addyosmani/tests

Adds unit tests