merge thread and object back to engine
enable diff threshold as command line option in test framework