Fixing tests

Moved GenerateFlowDocuments method to LogEntry class.
Have somehow managed to greatly simplify tests..