Added a test to verify nesting of before/after functions when a proxy of a proxy is created.