add tests for assignment