Adding test: reverse a string given a char array