random arrays for tests, need to check error bounds