Add test case for passing moment instance.