Added check for response code to change password test

Change-Id: Idb4db10da0b7c5c150f28658cf541d66ebee00fa