java 7 port back for ReadOnlyDataTest and RedditTest