FileElement fixed and testcase added