The test has a small delay with input. You also have to counteract your response sometimes, e.g. after turning left, you have to apply a small amount of right to achieve the desired heading.
TOP TIP - Stay calm and use small movement. There's a tendancy for people to become flustered when missing a box and then to overcorrect which makes things a lot worse.