added tests for moment