P21 test and code