move CaseBlock utility out of the test.utils module