fixed some tests for npm module