Testing some cpp functions in isolation