updated test to declare arrays properly