refactor(instance): rename updateAttributes to update and move tests to seperate file