I would put util function at the end of the file to have all the tests together at the top.