Fixed null pointer exception in post test flushing.