More fixes and tests for TNEANet attributes

There were no checks that the right node was being set correctly which
allowed some errors in the attributes code to go unnoticed. Add in the
checks so that there is no regression.

These tests also found some more omissions from the last patch which are
also fixed.