Fixed Epic in Rewrite Rule for Inlining (did not properly match on Id)
Additionally some minor improvements in the test case