Basic test for assignment