fix tests for formunloadalert pattern