Cleaned up tests-edit.js and worked on delete