Convert node_manager test to spec.

Change-Id: I0a6324e0db87088f6580719ae0eeacc980aa9961