Test unit for updateAttributes discussed on #1449