add cpp test for input check