abstract some methods in contents service tests

should allow re-use for ContentsManager subclasses