added unit test
Merge pull request #1 from realpython/unit-tests

added unit test