Add example with failing assertions

This will make debugging easier as many different outputs are printed
and can be examined.
Make assert_eq helper private
Print filename for crashing tests

While this is not nearly as useful as line number would be, it is a good
start.
Minor cleanup
Do not pass filename to functions

It is already stored in test data.
Fix double crash report
Use fputs where possible instead of fprintf