added alert tests