the error with testhost.deps.json is because you need to add the Project Reference from the main project into test project, like this
after this, build your project and you can run your tests