Williamson optimistic of playing in final Test