installed_progs.t: Add diag() headers and more tests

c1e2d6c8-4649-11e4-98f5-c80aa9e67bbd