add a test that only injects a portion of the variables
update implementation to pass tests