Empty temp-tables in PrepareData.
Implement test method for testing ErrorMessageLog handling.