Test case for confirm flow
Fix #exists flow