Add a test for the double auth problem

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>