Add unit test -> fix bug in isProbablyLogLinear