Fixed unit tests which started to fail when I upgraded node.