Adding test coverage

Running grunt test now will give you a summary of how the code coverage looks like.

You can see more details by running grunt coverage and following the steps in teh CONTRIB.md file.

This will help us cover more code branches and make sure we stay accounted for the code we add to add test for.