Add spec for first line match pattern