added edit tests and started on controllers