added first unit tests for cpp implementation