Add test for reboot-non-build-nodes
Remove dead code
Move reboot-non-build-nodes code to models.py