finished tests and functions to remove unecessary fields from custom objects