Add functional test for nodeFor