cleanup Editor#getShape for clarity, and remove debug in test.js