Made test a dependency only when testing.