Improve test failure detection and add new test for from-beginning flag as other tests depend on it