add lottery element tests.