Add test script for npm