len(self.P.shape) checked
Minor change
ValueError tests added