Composer and gitignore update.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
Add some tests.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>