New unit tests.

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

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

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
Merge pull request #780 from Tithugues/ut

Unit tests