Added a test to verify modification of the return value by the after function.