sexy if statement in pre_save and a better runtests.py