Fixed some model issues. Added testing functionality for
tasks/contests/participations.