update simple_dev.c driver and add test.c test file