These 6 duplicated test assertions should be replaced by reference to a utility function - as well as the similar ones appearing at lines 122, 130, etc.