C++ Unit test

Hi,
How can I add custom command in Latent Commands? Also need to know how do I get Tick() like interface in test automation?
I’ve tried to add new latent command after referring ue4 doc but I get assert in file automationtest.cpp, reason is new test is not registered.