XD-648 Regression test on file source

fix dir attribute of file source

rename duplicate parameter

add basic tests against file source/sink

remove fromEnd