minor test refactor to remove duplication in expectations