allow 'test' and 'spec' segments for upload