fix bug wait qui wait pas, tests qunit