Fixed bug with moment.js in tests