Fix Test Resource Leak