add --test option to run