Add tests for type and disallow digesters (v3)

Signed-off-by: Francis Galiegue <fgaliegue@gmail.com>