Fixed issue #4254

As found by @rainerjung the AtomicLongFieldUpdater in ReplicatedRecord was updating the field "hits" when it should update "lastAccessTime". So it messed up both values (hits were overwritten with a timestamp).

I wrote new tests which check both attributes of the record. The tests failed before I fixed the bug.

In addition all warnings in ReplicatedMapTest have been removed. I also created a common base class for both test files. The class ReplicatedMapTest is still too big (over 1100 lines) and should be split up into several files per test group in a later PR.