Adds 'override' keyword for override functions (onEnter, onExit) in cpp-tests.