Fix some  minor bug, add tests and add a new route to edit a specific problem