Could we refactor these to helper functions, then call them in each test?