Test script for -scope option