write pledge tests