testing different emit functions