Added better testing with npm test and Travis-CI