emr functional tests