minor test improvements related to PR feedback
Created by: twop
Addressed feedback from @felixfbecker in https://github.com/sourcegraph/sourcegraph/pull/12135
Created by: twop
Addressed feedback from @felixfbecker in https://github.com/sourcegraph/sourcegraph/pull/12135