Added tests for after rule