Refactor GetNode command tests