Fix deprecation warnings for 'isleap'
Fix test