test by_attributes() with array of values