Remove feature warnings and fix deprecations.
Ignore one of the lazy val tests because if behaves strange.