Make composer-installable, fix running of tests