Renamed (dis)allowed_types to (dis)allowed_extensions.
Test validation of allowed_extensions.
Test validation of allowed_extensions.