separate testcase from source file
use unittest
add mergeLocalDirs()