setup socket & write 1st test