Update test/test_core.rb

Test for destroy persistent