IMHO this is a case of two pilots both legally entiltled to fly the aircraft on a flight not for the purposes of a formal (i.e. CAA/JAR etc.) examination. Therefore it should always be decided in advance who is the commander and only he/she logs the time, as P1.