Added test for nested objects