Add test for datasource emptiness check