test/util.c: rename test from "safe buffer" to safe_buffer

This makes it simpler to pass the test name on the command line to the
applications driving the tests.
check_all.c: handle the command line args

The args allow the user to run specific tests and set the print mode.
rename check_all.c to test/check.c