Update edit handlers unit tests

Add more tests. Clean up modified class properties after tests finish.
Replace assertRegexpMatches with assertIn.