Fix for broken tests when new Ubuntu series is released.

Bug https://bugs.launchpad.net/juju-core/1.20/+bug/1384175