This helper might be better defined outside and reused in all three tests below?