BUGFIX: writing character array casting to string instead of int
-finished test script