Added tests for ReadOnlyRepository