Fixed a broken test for 'choose'.
Fixed incorrectly-implemented tests for 'itlist' and 'rev_itlist'.