momentjs : fix external module definition + added tests