better test coverage on helpers.py