fix unit tests and set logger console to write always to stderr