js-factories integration with chai