Migrate unittest from master to ansi

* Add check as dependency
* Add test to cmake
* Make test_bitset ansi-c compliant and extend test
//TODO test_hashgrid and test_radixtree