fix test that was always true

that is because assertTrue passes almost all the time.
tests: add docstring