BUG: fix failing scatter matrix test