Remove test libs from dependency graph.