Make Test a template function for easy comparison with values.

Also allows further logging and output in the future.