tests: add a test-case for recursive structures