Test mode functionality added. New test added

Now you can specify -m test and application doe not submit a bsub job.
Instead it runs the script directly on the local machine