Add tests for nested collections