some test code for libuv