Update backend.py

Add quick ro test in edit_prefix