Add tests for generated engine path under namespace.

I think this might be a condition worth to test.

Related issue: #15489.