testToConnector:
- Added this to test toConnector method as required in specs
- Caught several bugs: handling of null string

toConnector:
- Revised toConnector method after running the above test.