changes for Junit using in-memory db plus additional processing

Changes made to incorporate JUnit test using in memory database, Header
processing and appropriate object passing to the next processing module