Fix test setup. Fix some tests for projects.