Add extended test-case format

Allows specifying additional parameters per test case: test name, reference image name (not implemented yet). Test case still has to be single-line.
Correctly handle errors returned by avisynth