fix global define for testing