XD-648: File-Source/Sink Tests

Fix dir attribute of file source, rename duplicate parameter and add basic tests against file source/sink