Adds more error case tests