The test suite need the test.h file to build. Add it to noinst_HEADERS in the Makefile.am so it gets included in the tarball that make dist produces.
@@ -28,4 +28,4 @@ test_LDADD = ../or/libtor.a ../common/libor.a ../common/libor-crypto.a \
../common/libor-event.a \
-lz -lm -levent -lssl -lcrypto @TOR_LIB_WS32@ @TOR_LIB_GDI@
-noinst_HEADERS = tinytest.h tinytest_macros.h
+noinst_HEADERS = tinytest.h tinytest_macros.h test.h