Use require_once instead of require to avoid class name collisition when all tests are executed.
Add socket::writeAll().