cpp: Add test option and make tests optional