add test case 004
Add test case 005
bugfix on outputDirectory computation
Add test case 006