Add test for the sha1 format attribute

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