Added tests for edit page