Add Feature annotations to document tests

Also fix the assertNoCriticalErrors function, which is used by
the bigFile test.
I believe so, so for the upload operation the behaviour should not differ between empty and valid non-empty files.