added better and cleaner tests to helpers.py