Add test for dynamic object injection

Test Plan:
- Run new test in output_test.js

Auditors: john