updated test, added logging