Delete tests restored

The tests failed because of that SQLite doesn't support foreign keys without PRAGMA foreign_keys = ON
I had to separate tests on softdeletes, I don't know why it failed without that.