Writing tests for Pledge model