There should be a unit-test for this.

If you end up going w/ my last suggestion in https://github.com/sul-dlss/SearchWorks/pull/72/files#discussion_r12613330 (and assuming it's even possible) that may make the test for this dead easy (or might negate the need for this method entirely).