Got before and after working for document tests