Programmatically determine cross scripting test instead of hardcoding