logging was added
old tests were refactored