Fix ert require ordering