Make global vars part of mock adapter