Fix getConstants usage in tests #713