add test for cassandra activity serializer (and fix a missing validation problem)