fix tests of module api.message