pytests now up to 81% of functions.py, coverage added