fix broken tests

and add in composer.phar self-update line in travis.yml