removed debug path
added junit tests
fixed c++ code to cast string correctly