Tdd testing, manipulating arrays