fix check for CtxEntity, removed JOptionPane call from 861 test