Add npm test script, fix small bug with args not getting passed through post