Implement same API as PP reader

Copied tests from PP repo.