def take_test_board(test, idx):  # pylint: disable=redefined-outer-name
    """Take state from a test board of a test list from tests module

    Args:
        test (list): Test board list
        idx (int): Test board id

    Returns:
        list: A list of lists defining state
    """
    board = test[idx]
    e = board[0][1]  # pylint: disable=redefined-outer-name disable=invalid-name

    state = list()  # pylint: disable=redefined-outer-name
    for row in board[1:]:
        state.append(row)

    return state, e