main not tested (fix warning)

added #cfg[not(test)] on main