corrected poor naming of a function. added tests.
added tests to orchestrator