Test against 4.2

That. Also fixes some deprecation warnings.