Test part of DataValidator, refactor Datastore and DatabaseAction.