Assign value from attribute test

 Test case for Issue No #242.