Factor out common test behavior [#86]