solved test bug: socket were not closed