Add conditional branches for unit testing

This commit adds conditional logic for running unit tests.
Merge pull request #67 from bodepd/initial_unit_test_support

Add conditional branches for unit testing