Add ert tests