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