Also test ldwarning and lderror options.
Add testcases with error generation.
add ref/ and control/ subdirectories, so the control files and result files do not clutter the directory, and it is clear which file has which purpose.