test for attributesToArray on entity