added a test for assignments