Put WM check because of issue in instrumentation API on WM