Add lottery endpoint
Add integration tests