added --test switch to getopts variables