allow running individual tests on the command line

Add long option --test to let users specify one or more tests to run.
The option accepts '*' as a wildcard character.