Simplify Message.getopt, add test.