Collect sources for tests-related modules in tests/, compile them to libtests.a.