moving test code to hydropick.ui.test.utils