Adding tests around badly configured apps and edge cases