test special-case matrix