Added and fixed some tests.

* Test which runs two paralell instances of fix avoids hanging when
  faced with a fix that does not support locking.

* Added tests for '--source' option.