fix missing "use" + missing dependency in composer.json

and add a very basic unit test.