add more tests and functions to ag_data_access