getActivityType and formatDate unit tests