Test for assignment