Correctly reference slug instead of permalink in backend tests