Fix node api tests