Mehidy Hasan Miraz spun Bangladesh to the verge of a famous victory as he claimed three wickets to have Australia at 243-7 at lunch on Day 4 of the first cricket test.