Fixed norm test for every mode and fixed test for old numpy version.