use logger instead of print
fix mocked backend
refactor tests