Shifting computation to from_doppler_factor class method, fixing tests