Add Feature annotations to document tests

Also fix the assertNoCriticalErrors function, which is used by
the bigFile test.
The current behaviour is actually similar to empty file, in that there is a file created but has no sources.
I should log a defect for that, I think.