Fix delete in tests