improved logger and its use in test modules