Preload external data

fix unit test, start refactor of service method to start dataset agent