Testing dir matrix bug