add minimax test, workaround bug