Fixes problem with the task to run on multiple matrices. Now all tests pass reliably.