Fix broken transform support and file without contents adding more tests

- Fix broken transform support.
- Fix broken support for no entry contents.
- Added tests for transform support, no entry point contents and multiple entry points.