Test interval parsing