Added more spec tests for connection