Mocha testing on Locomotive object context