connection test cases implementation and fix for json serializer test