fixed tests for npm module