Test code to simulate implementation of LD4L use cases