Fixed bugs to make sure all autoamted tests worked; added unit test for
NodeEditor.