Kookaburras forced to dig deep, beat Japan