added getBlocks api test