Test codes for P3