initial work on ert tests from spec