moving unit tests to test/unit
adding logging
adding functional tests, yeay