fix scripts/stage tests