commit test3 code for theron6
fixes for gcc compiling