[minor] use define and fix tests