Unit tests with unittest++ (incomplete)

* tests with mock system state and calls
* mock system calls have not been implemetend -> all tests fail