loggin optional
Some rudimetary autonated test added. Guess what: it fails!