tests and docs for class name functions