Added functions to get selftest values

Added functions to get selftest values