add unit tests for new methods
Merge pull request #41 from nastysloper/tests

add unit tests for new methods