Add test for array

- Each test is a .c file in directory test
- Command 'make test' runs the tests