metrics: explicitly construct std::string from const char* for attribute's set method.
tests: attribute test added.