Added test for advanced assignment