Addresstest

Solve address decoding issues by introducing new API flag.