fix nodes unit tests to work on el6 which does not support closures.