Make building tests optional

Signed-off-by: W. Michael Petullo <mike@flyn.org>