added alert, rake test prepare