Added also unit test to make sure we actually do produce records.