Rebase on master and add a test that checks if getrelease.sh returns the correct release after upgrading.  It'll be ugly, but will look something like:
`passes "$SCRIPTDIR/installer/ubuntu/getrelease.sh" -r "$PREFIX/chroots/$FIRST" | passes grep -q "^$*$"`, although you'll need to handle the dev case somehow.