Added more testprojects and patternmatching tests.