cmake: add unit testing option and shunit2 tests