tests: add tests of functions string_shared_get and string_shared_free