Added support to runtests to run checks mid-test rather than just at the end.
Added Z status bit, and required infrastructure to support status bits in general.