added tests for test files, fixed edtd some more