Replace intentional blow up error with actual test of attribute and children length