WE cannot play maps, as such what you are asking makes no sense. Are you asking if one can detect if a map is tested from WorldEdit?
Normally I just have some test triggers I enable during development that I disable during release, like how a lot of games and programs are made.