Add test.h with macros press_key_and_loop, release_key_and_loop, and fail_if and use them in all the tests