test file merge and count