add tests and edit page