Unit testing the dictyHF directive

Adding tests for the directive and factory. The controller needs to be
adapted yet, but the code from the root project is also there.