test for stage id validity before import