test addr.c move to sample