Allow flags in the test framework

Allow to specify the flags/options in a test like you would do on the command-line args, using

     options ["--grok-patterns-path", "../path/to/my/patterns/folder"]

Also trimming a few whitespaces