API: Add data_dir and test APIs

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>