added initial unit tests

this fixes #4