Allow empty (only tags) segments, write further tests