Fixed code syntaxe and adde one more test.
Fixed norm test for outdated numpy version.