Add Editor class tests and auto format preferences