Fix assignment bug.
Add device property setter test.