Added ng classes (patterns) and test cases for them