Add unit test for editor dto and service