fix custom java comparator check
move platform tests out of core