Add Feature annotations to document tests

Also fix the assertNoCriticalErrors function, which is used by
the bigFile test and fix some formatting.