Some tests for editor

This just tests the most critical parts. I think it's good enough.