added tests for minimax and reference impl