add ert tests

let there be tests!