Made unit tests for ReaderCategory more robust, and potentially fixed the stream NPE Heisenbug