Add tests
Finish api tests for connection