cpp class tests