Fix some attribute tests

Make sure there is an attribute to apply to the node before applying it, else the opsview server wont take the change