fixed test
added logging