updated logicTest

-added constant for editing
-modified logic for edit
-updated logicTest for edit