make tests more compatible with 4.1