Added tests for nested attributes