Add assertions in ClosureSerializerTest