Cleanup the check testing code.

I didn't like the big dump bin testSource variable. Instead each test
can define its own source if needed.