By adding the __setstate__ method an infinite loop is avoided regarding the use of __getattr__ on the ProductAttributesContainer model. Moving tests into appropriate folder