Add RevisionServiceTests and small RevisionService bugfix