add test case

add stopFlag in Writer. if Stop() was called, ConnectToNSQ() will return error.
remove writer's Identify(), i just think Write(identify(ci)) is ok.