test5: use Program object, draw some debugtext

This is crashing sometimes when run in the debugger (but never observed
when run non-debug)...