Setting library dependencies only for tests.