fix erma_tests and erma_utils_tests