Make InputStreamParser package private. Add test.