legacy tests: migrate test_insertcount