Fixed tests since we don't default set code/valid_until in ctor