Generated arrays are now returned as unique_ptr and moved out of test classes