Bug 539770 - migrate gstrfunc unit tests to gtest