Add tests for recursive assignment