moved test setup in npm pretest from .travis