added simple test, removed to/from char functions