Trying to pass tests for login and logout and generating Pledge model with associations