tests: extends test_opts for grouped single options

Signed-off-by: Jean Privat <jean@pryen.org>