Adds test for assignment algorithm