Passing promise behavior file sync test.

Still need to code implementation, but expectations are set up.
Adds when and sinon js dev dependencies.