Rewrite DEBUG_TRACE
Move windows console creation to a function
Add md5 test to unit test