Move method to test module, its only place of use.