fix TestOpenDialog