Modified deletion_test for Windows

Moved to patient connection