(unfinished) add er test