Fixed issue in TestFrequencyAnalyzer

Fixed the way expected was calculated in the function(method)
calcDeviation.