Add test for #allowed_types