Automatically select fields that are selected in the editor
Add test infrastructure

Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Handle namespaces and nested classes properly.
Fix handling of templates