Improved deserialisation of attributes, and added a new unit test for updating a link