Added tests for new deleted flag in models