Did you try the code posted in Re: comparing two arrays and displaying scalar matches? Would you care to explain why TEST FAILED ABORT | 24 does not match the pattern TEST? Why are you not wrapping code in <code> tags?
Comment on Re^2: comparing two arrays and displaying scalar matches