Add ct API function for reading testspec data