Move extended_class to a method
Add Namespace tests