added a test for the case when there are two license sections in succession