Parameterize these functions to make it easier to create other tests.