Two test cases for Editor