unit test for choice generator