POULPE-512 Added unit tests.