working out why tests.py is broken