use logging instead of print throughout test suite