Added license to composer.json
Added unit tests