improve tests with more tests, docstrings

- reduced verbosity of TextTestRunner
- implemented more testcases for logic