unit test for the assignment