fixed Card generation in tests