fix npm tests