test for assignment