Coorected captures
Added a test cpp file