Add test tests and run tests from the app.
Fixes for asset ordering.

- Assets are no longer reversed.
- Fixed an issue where lazy asset names in embedded manifests could cause
  duplicates in the final list of assets.
- Added tests.