add test + fix example in info manual

Signed-off-by: Mattias Andrée <maandree@operamail.com>