Refactor code PUT test case in ConfessionsControllerTest.js.