example testing C methods