fixed test structure, changed winston to log