added test for least occurring