ThreadGenerator module updated
ThreadsGenerator tests updated
ThreadRecordWrite using Factory
Testcases updated to use with the new Factory