added cout logger and refactored tests