Tests for interface options in xml.

The ```try...excpet...finally```  block let me recalled the comment @lmr gave to me. This feature is support since python 2.5 and our test framework may run under early python version, I'm not sure if we should avoid this by using"
```
try:
    try:
    except:
finally: