Porting unit test cases from rtenv-gdbautomation with modification

TODOs:
1. Stop testing immediately if test fails
2. Find method to use macro in gdb scripts
3. Rewrite itoa test cases. It is disabled due to implementation
   changed from original design