test window open catch