Add test case for nesting mapped entities