added tests
Merge pull request #2 from realpython/unit-tests

added tests