Minor fix. Added test