fixed offset counting, test for annotation parsing