Tests for stripPrefix() plus some other cosmetic fixes -- arg rearrangement etc.
Tests for method tails().