Fix for .text() pulling from subnodes
Test case for attribute fields