Changed semantics of assignment: now returns unit.
Added unit test.