fixed cds tests not using right DB
fixed resourcekey serialization