bug corrected & tests added