unit tested the contest model