Count tree, program work, but tests do not work