add socket request test to error handling
handle callback called multiple times in the socket request