build: Move test script from .travis.yml to composer.json and package.json