Testing functionalities in node server