Added tests for dataQuery function

- Test that callback error and data are returned as expected