Various tests of CPP code