p57 impl and test