INT-3035 Fix ExponentialMovingAverageRate 'window'

'window' constructor arg was not used.

Add test.

__cherry-pick to 2.2.x__