Make test work with pure java reader