updated to support ssl in test