Fixed a significant testing bug
Fixed a significant bug in the functional simulator test functionality, it was testing at the wrong moment and also skipping tests at HALT time. Both are now fixed, and sub8.ab passes all tests (it was failing ~60% before).