added haspopup test