Fix tests and programs to use md_get_xxx()
3 files changed