Tests: use 2 spaces indentation

To avoid inconsistencies in the future, an `.editorconfig` file is
added.