Fix tests with latest Freezegun version, pin test dependencies