Improve unit test: verify that closing search bar also doesn't reset search
state. Also add docs clarifying which functions are safe to call without any
runs() wrapper.