Add tests for block() method