wrote some tests for connector