Updating tests to handle account refresh on resource update