fix if_gem test failure