Test against 4.2

That. Also fixes some deprecation warnings.
Good point. Fixed.