Add logging, fix one test typo