Changing the passtest function to be... you know... correct.
Whoops, left the debug in.
For whatever reason, the !p.passed line fails, but I changed it to an inline check.