tests: add tests and log