tests: add more tests for block
core: add count