Fixed a bug in the PUT endpoint test