grextras: added hooks for c++ unit tests