test_module:changes to stop script in case make fails
trim_dev.c:traverse to last node in sculldev.And also keep the last but one node.