Fix spec directory name
Consider namespaces in class names