contacts model testing and helper method