Improve specs, fix inheritance behaviour for namespaces