momentjs : fix external module definition + added tests

Fixes : https://github.com/DavidRogers/DefinitelyTyped/commit/626cdd625fa118da89872d44a288af573182b986#commitcomment-5794909