demographics and encounter unit tests