Fix emissions module and test it in CI