Finish idr_test.c