Ported "Reader" tests to PHPUnit