Minor fix.
Added a test related to issue #485.