I don't know why it works well when put the extension to core shell Activity and fails in instrumentation test. Maybe there are some differences between the loading file mechanism, or some Async problem?