tests for nested objects