Added unit tests

Integrated HTF as unit test framework and wrote a first test.