Add pre and post test phase