[#3] Fixes for connection_test.py, collection_test.py and file_test.py