fixes multiple issues parsing attributes

What's the point of this change to the test?