Exchanged className position because of better view of pattern serialization
Added ng pattern tests, fixed bugs in ng-pattern, added new schema definition