cpp: add declaration to test