updated tests and docs for new apiMode method and revised custom host usage