Added TypeRepository tests and parsing.