testing some functions from nodejs