Worked out the details for test function registration and ended up using yet another C++11 concept - std::function<>