Redo the way we log the test case identifier with -T

The previous approach would not print the fully qualified identifier with
group begin/end messages

Signed-off-by: Olaf Kirch <okir@suse.de>
When exiting, make sure we close any open test group and report its status

Signed-off-by: Olaf Kirch <okir@suse.de>