Add tests for the new getBlocks methods