Adds a simple phpunit test

This adds a simple phpunit test for getting the name.
No, composer.lock is meant to be committed. It's the compiled dependency tree. See https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file for more info.