matrix reduced in categories are too small
add tests
other commits