Update the container title on refresh

Also added a unit test, and fixed remaining test failures.