Adjust test target dependencies

So that our "tests" target still compiles source as necessary.