Moved logging to test scope too, until it might be needed in the code.
Added license headers
Added support for nested result dto selection.