Add tests for sign out with redirect, related to #2249