Writing test for Pledge model