tests added for methods edit and new