tests: Check the behaviour of escape and backspace