Writing pledge tests