Fix bugs in tests_add_edit.js
Merge remote-tracking branch 'origin/master'