Fixes #6: Only store the first error encountered for a test case

I just ran into the problem reported in #6 and I think this is a good fix for it