add tests to confusion statistics