add .editorconfig and unit test