added test for choice function