Add tests and stubs for definition view