Update the online help function to define the proper API
Add missing functions for handling test categories

Also fix existing API functions that are incorrect after redesign.