Add tests writing to array and using static arrays