Add test script for block command

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>