Test for node api and fixes for return types / post body.