adding tests to make sure c++ syntax is correct