This allows to test the code better hence test have also been added
mentioned in issue #1711 (closed)