add methods and tests to save entities from a provided array of values