Tested ref arrays
More tests