added methods for getting records and referring tests