Add logic unit tests.