added code for default array to test