added test case for lottery controller