Fixed broken tests
Fixed file path not being deleted on delete