Added Composer and fixed the tests

In addition, you should also submit this package to Packagist (see https://packagist.org).