more test cases for before/after