Added test for Command methods
Raise RuntimeError if the block is defined not as wanted