adding tests for nested objects