move old object<-> node functions to test file