improve test to use getopt.
improve test to use getopt.

Test is now much more user friendly using getopt, one can choose to
set or not various parameters that before were forced. See --help.

profusion/lightmediascanner,Pelagicore/Media-Manager-lightmediascanner-patched,Pelagicore/Media-Manager-lightmediascanner-patched,profusion/lightmediascanner,Pelagicore/Media-Manager-lightmediascanner-patched,profusion/lightmediascanner