add methods

Signed-off-by: Stéphane Depierrepont <toorop@toorop.fr>
type block

Signed-off-by: Stéphane Depierrepont <toorop@toorop.fr>
bugfix

Signed-off-by: Stéphane Depierrepont <toorop@toorop.fr>
add unit tests

Signed-off-by: Stéphane Depierrepont <toorop@toorop.fr>
wip

Signed-off-by: Stéphane Depierrepont <toorop@toorop.fr>