Change TestModeToString so it returns a const ptr

Fixes #21 to get rid of warnings when compiling on Linux.