nodes: Add test cases

I made sure that setUpEffectiveNodes is working correctly.

PTAL