Make Test a template function for easy comparison with values.

Also allows further logging and output in the future.
Merge pull request #9 from archshift/template

Make Test a template function for easy comparison with values.