Add factory call back for testing nesting attributes
Add test for number of phone types