add test with requireNamespace