finished UT and compatibility with node 0.10