Add a test for delete_model and fix backends accordingly.