added -test argument.