Added unit tests to verify what happens with nested models