Fix for dom/attributes test, failing in Nightly. Related to issue 3790
Simplify test for NamedNodeMap (related to the previous commit and issue 6315)

http://code.google.com/p/fbug/issues/detail?id=6315