Fix inclusion of test object files in libbatteries.a.