NodeJS implementation for some test apis