Change JSON str->unicode and separate test base class