reorganized card tests and created valid_id attributes validations