test: add tests for CodeManager
test: add tests for Runner