add tests for source-def, source-named and source-inline