added tests & updated reverse_string