Add refresh and leave tests.