Implement unit tests for PartyDAO and fix bug when parsing date