Fix alert box closing
Fix pending tests
Make error expectations case insensitive