Create function edit to tests controller. Change javascript and css links - replace assets/ with ASSETS_URL. Create tests_edit_view.