Add tests for the before and after modifiers.