Use dismiss instead of hide
Use dismiss and default value in test