add test.c

Signed-off-by: Elen Song <elen.song@atmel.com>