[E1000]: Convert regtest macro's to functions